<template>
	<page-body>
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center rczgover_flex_0_higd"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub rczgover_fd0_0_higd'>
					<view class='flex flex-wrap align-center rczgover_fd0_0_c0_higd' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  rczgover_fd0_0_c0_c0_higd'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='rczgover_fd0_0_c1_c0_higd'>{{title}}</text>
					</view>
					<view class='flex flex-wrap align-center justify-end rczgover_fd0_0_c0_higd'>
						<!-- <text class='rczgover_fd0_0_c2_c0_higd'  >{{$t('详情')}}</text>
 -->
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction align-stretch benben-flex-layout rczgover_flex_1_higd">
				<view class='flex flex-wrap align-center rczgover_fd1_0_higd'>
					<view class='flex flex-wrap align-center rczgover_fd1_0_c0_higd'>
						<text>{{$t('巡更时间')}}</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='rczgover_fd1_0_c1_c0_higd'>{{info.list.rcxglogxq_xgsj}}</text>
					</view>
					<view class='flex flex-wrap align-center rczgover_fd1_0_c2_higd'>
						<text class='rczgover_fd1_0_c2_c0_higd'>{{info.list.wtzt_name}}</text>
					</view>
				</view>
				<view class='flex flex-wrap align-center rczgover_fd1_0_higd'>
					<view class='flex flex-wrap align-center rczgover_fd1_0_c0_higd'>
						<text>{{$t('巡更人')}}</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='rczgover_fd1_0_c1_c0_higd'>{{info.list.wtzt_name}}</text>
					</view>
				</view>
				<view class='flex align-stretch rczgover_fd1_0_higd'>
					<view class='flex align-start rczgover_fd1_0_c0_higd'>
						<text>{{$t('问题描述')}}</text>
					</view>
					<view class='flex align-stretch flex-sub'>
						<text class='rczgover_fd1_0_c1_c0_higd'>{{info.list.wtms?info.list.wtms:'无'}}</text>
					</view>
				</view>
				<template v-if=" info.list.wttp.length!=0">
					<view class='flex flex-wrap align-center'>
						<image v-for='(item,key0) in info.list.wttp' :key='key0'
							@tap.stop="multiImagePreview(item,info.list.wttp,'')" class='rczgover_fd1_3_c0_higd'
							mode="aspectFill" :src='item'></image>
					</view>
				</template>

				<template v-for='(item,key0) in info.list.wtsp'>
					<view class='flex flex-wrap align-center' v-if=" info.list.wtsp.length!=0" :key='key0'>

						<!-- <video class='flex  rczgover_fd1_4_c0_higd' :poster="item.thumb" :src="item.path"
							controls='true' x5-video-player-type="h5" :enable-progress-gesture='true'
							object-fit="fill"></video>
 -->
						<view class="rczgover_fd1_4_c0_higd" style="position: relative;"  @tap.stop="mixinToPlayVideo(item.path)">
							<image class='flex  rczgover_fd1_4_c0_higd' :src="item.thumb" mode="aspectFill"></image>
							<image style="position: absolute;width: 88rpx;height: 88rpx;left: 50%;top: 50%;margin-top: -44rpx;margin-left: -44rpx;z-index:9;"  :src='STATIC_URL+"247.png"' mode=""></image>
						</view>
					</view>
				</template>

			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局2flex布局开始-->
			<view class="flex flex-direction align-stretch benben-flex-layout rczgover_flex_2_higd">
				<view class='flex flex-wrap align-center'>
					<text class='rczgover_fd2_0_c0_higd'>{{$t('问题整改')}}</text>
				</view>
				<view class='flex flex-wrap align-center rczgover_fd2_1_higd'>
					<view class='flex flex-wrap align-center rczgover_fd2_1_c0_higd'>
						<text>{{$t('整改时间')}}</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='rczgover_fd2_1_c1_c0_higd'>{{info.info.update_time}}</text>
					</view>
				</view>
				<view class='flex flex-wrap align-center rczgover_fd2_1_higd'>
					<view class='flex flex-wrap align-center rczgover_fd2_1_c0_higd'>
						<text>{{$t('整改人')}}</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='rczgover_fd2_1_c1_c0_higd'>{{info.info.nickname}}</text>
					</view>
				</view>
				<view class='flex align-stretch rczgover_fd2_1_higd'>
					<view class='flex align-start rczgover_fd2_1_c0_higd'>
						<text>{{$t('整改备注')}}</text>
					</view>
					<view class='flex align-stretch flex-sub'>
						<text class='rczgover_fd2_1_c1_c0_higd'>{{info.info.zgbz?info.info.zgbz:'无'}}</text>
					</view>
				</view>
				<template v-if=" info.info.zgtp.length!=0">
					<view class='flex flex-wrap align-center rczgover_fd2_4_higd'>
						<image v-for='(item,key0) in info.info.zgtp' :key='key0' class='rczgover_fd2_4_c0_higd'
							mode="aspectFill" @tap.stop="multiImagePreview(item,info.info.zgtp,'')" :src='item'></image>
					</view>
				</template>

				<template  v-if=" info.info.zg_video.length!=0" >
					<view class='flex flex-wrap align-center' v-for='(item,key0) in info.info.zg_video' :key='key0'>

						<video  @tap.stop="mixinToPlayVideo(item.path)" class='flex  rczgover_fd2_5_c0_higd' :src="item.path"
							controls='true' x5-video-player-type="h5" :enable-progress-gesture='true'
							object-fit="fill"></video>
						<!-- <view class="rczgover_fd2_5_c0_higd" style="position: relative;"  @tap.stop="mixinToPlayVideo(item.path)">
							<image class='flex  rczgover_fd2_5_c0_higd' :src="item.thumb" mode="aspectFill"></image>
							<image style="position: absolute;width: 88rpx;height: 88rpx;left: 50%;top: 50%;margin-top: -44rpx;margin-left: -44rpx;z-index:9;"  :src='STATIC_URL+"247.png"' mode=""></image>
						</view> -->
					</view>
				</template>

			</view>

			<!---flex布局2flex布局结束-->
			<!---flex布局4flex布局开始-->
			<!-- <view class="flex flex-wrap align-center justify-center benben-flex-layout" @tap.stop="handleJumpDiy"
				data-type="back" data-url="1">
				<button class='rczgover_fd3_0_higd'>{{$t('下一项')}}</button>
			</view> -->

			<!---flex布局4flex布局结束-->


		</view>
	</page-body>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"info": {
					"list": {
						"aid": "",
						"memberuser_id": "",
						"wtzt": "",
						"wtms": "",
						"wttp": [],
						"wtsp": [],
						"rcxglogxq_xgsj": "",
						"memberuser_nickname": "",
						"wtzt_name": ""
					},
					"info": {
						"update_time": "",
						"zgtp": [],
						"zg_video": [],
						"zgbz": "",
						"nickname": "",
						"mobile": ""
					}
				},
				"id": "1",
				"title": "",
				"ids": ""
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			let {
				id,
				title,
				ids
			} = options
			if (id !== undefined) this.id = id
			if (title !== undefined) this.title = title
			if (ids !== undefined) this.ids = ids
			this.getrj848050bdf751Func()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//查询日常巡更问题详情-整改完成
			async getrj848050bdf751Func() {
				//请求方法
				//数据验证

				let datainfo = await this.$api.get(global.apiUrls.post6848050bdf751, {
					rcxgwt_id: this.id
				});

				if (datainfo.data.code != 1) {
					this.$message.info(datainfo.data.msg);
					return
				}
				let infoinfo = datainfo.data;
				this.info = infoinfo.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;

		.rczgover_fd3_0_higd {
			border-radius: 44rpx;
			width: 686rpx;
			line-height: 88rpx;
			font-size: 32rpx;
			background: #D32A29;
			color: #fff;
			height: 88rpx;
			margin: 86rpx 0rpx 68rpx 0rpx;
		}

		.rczgover_flex_2_higd {
			margin: 16rpx 0rpx 16rpx 0rpx;
			background: rgba(255, 255, 255, 1);
			background-size: 100% auto;
			padding: 28rpx 32rpx 0rpx 32rpx;

			.rczgover_fd2_0_c0_higd {
				color: #333;
				font-size: 32rpx;
				line-height: 45rpx;
				margin: 0rpx 0rpx 16rpx 0rpx;
				font-weight: 700;
			}

			.rczgover_fd2_4_higd {
				margin: 0rpx 0 32rpx 0rpx;

				.rczgover_fd2_4_c0_higd {
					width: 156rpx;
					height: 156rpx;
					border-radius: 8rpx;
					margin: 0rpx 16rpx 16rpx 0rpx;
				}
			}

			.rczgover_fd2_5_c0_higd {
				width: 100%;
				height: 300rpx;
				border-radius: 10rpx 10rpx 10rpx 10rpx;
			}
		}

		.rczgover_fd2_1_higd {
			line-height: 40rpx;
			color: rgba(153, 153, 153, 1);
			font-size: 28rpx;
			margin: 0rpx 0rpx 28rpx 0rpx;
		}

		.rczgover_fd2_1_c0_higd {
			width: 144rpx;
		}

		.rczgover_fd2_1_c1_c0_higd {
			color: rgba(51, 51, 51, 1);
		}

		.rczgover_flex_1_higd {
			margin: 16rpx 0rpx 16rpx 0rpx;
			background: rgba(255, 255, 255, 1);
			background-size: 100% auto;
			padding: 28rpx 32rpx 36rpx 32rpx;

			.rczgover_fd1_3_c0_higd {
				width: 156rpx;
				height: 156rpx;
				border-radius: 8rpx;
				margin: 0rpx 16rpx 16rpx 0rpx;
			}

			.rczgover_fd1_4_c0_higd {
				width: 100%;
				height: 300rpx;
				border-radius: 10rpx 10rpx 10rpx 10rpx;
				object-fit: contain;
			}
		}

		.rczgover_fd1_0_higd {
			line-height: 40rpx;
			color: rgba(153, 153, 153, 1);
			font-size: 28rpx;
			margin: 0rpx 0rpx 28rpx 0rpx;

			.rczgover_fd1_0_c2_higd {
				margin: 0rpx 0rpx 0rpx auto;
				height: 40rpx;
				background: #448DF7;
				width: 96rpx;
				border-radius: 8rpx;

				.rczgover_fd1_0_c2_c0_higd {
					color: var(--benbenFontColor3);
					font-size: 24rpx;
					width: 96rpx;
					text-align: center;
					line-height: 40rpx;
				}
			}
		}

		.rczgover_fd1_0_c0_higd {
			width: 144rpx;
		}

		.rczgover_fd1_0_c1_c0_higd {
			color: rgba(51, 51, 51, 1);
		}

		.rczgover_flex_0_higd {
			width: 750rpx;
			height: 88rpx;
			overflow: hidden;
			z-index: 10;
			top: 0rpx;
			background: #fff;
			background-size: 100% auto !important;

			.rczgover_fd0_0_higd {
				padding: 0rpx 32rpx 0rpx 32rpx;

				.rczgover_fd0_0_c1_c0_higd {
					font-size: 36rpx;
					font-weight: 700;
					color: #333333;
					line-height: 50rpx;
				}
			}
		}

		.rczgover_fd0_0_c0_higd {
			width: 120rpx;

			.rczgover_fd0_0_c0_c0_higd {
				font-size: 36rpx;
				color: #333;
			}
		}

		.rczgover_fd0_0_c2_c0_higd {
			font-size: 32rpx;
			color: rgba(211, 42, 41, 1);
		}
	}
</style>
